package com.itheima.spring_123_06.service.impl;

import com.itheima.spring_123_06.dao.UserDao;
import com.itheima.spring_123_06.pojo.User;
import com.itheima.spring_123_06.service.Userservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements Userservice {
    @Autowired
    private UserDao userDao;

    @Override
    public List<User> finduser() {
        List<User> list = userDao.findUser();
        System.out.println("UserSErvice....list" + list);
        return list;
    }
}
